package com.dingyx.ps.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <返回给前端的菜单对象>
 * @author ZhangYang
 * @date 2021/6/4 11:21
 * @version 1.0.0
 */
@Data
@ApiModel("返回给前端的菜单对象")
public class BossApplicationMenuVO {

    @ApiModelProperty(value = "应用-菜单表id")
    private Integer id;

    @ApiModelProperty(value = "父菜单id（1级为空）")
    private Integer parentId;

    @ApiModelProperty(value = "应用编码")
    private String appCode;

    @ApiModelProperty(value = "菜单类型(0菜单；1按钮)")
    private Integer menuType;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "权限编码")
    private String permissionCode;

    @ApiModelProperty(value = "菜单等级(从1级开始)")
    private Integer menuLevel;

    @ApiModelProperty(value = "菜单url")
    private String url;

    @ApiModelProperty(value = "菜单Icon(原备注)")
    private String remark;

    @ApiModelProperty(value = "下级菜单集合")
    private List<BossApplicationMenuVO> subList = new ArrayList<>();
}
